<template>
  <img :src="_src" />
</template>

<script setup>
import { computed } from 'vue'
const fileServer = window.domain_config.file_server

const props = defineProps({
  src: {
    type: String,
    default: '',
    required: true,
  },
})

const _src = computed(() => {
  let src = props.src
  if (!src.startsWith('http')) src = fileServer + src
  return src
})
</script>

<style lang="scss" scoped></style>
